<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文件上传</title>
  </head>
  <body>
    <h2>文件上传</h2>
    <hr>
    <!--enctype="multipart/form-data" 文件上传的必须属性设置 -->
    <form action="/portrait" method="post" enctype="multipart/form-data">
      用户名: <input type="text" name="username" /><br />
      头像: <input type="file" name="portrait" multiple /><br />
      <hr>
      <button>提交</button>
    </form>
  </body>
</html>
